﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OnlineTask.aspx.cs" Inherits="office_OnlineTask" %>

<%@ Register Src="../UserControls/Calendar.ascx" TagName="Calendar" TagPrefix="uc1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>在线申报业务列表</title>
    <link href="../css/page.css" rel="Stylesheet" type="text/css" />
    <script src="../ScriptFile/jquery.js" type="text/javascript"></script>
    <script src="../ScriptFile/JqueryPostService.js" type="text/javascript"></script>

    <script type="text/javascript">
        //打开业务详细信息
        function ViewShenBaoManager(FlowType, iid) {
            var strURL = "../WebPubManager/SerialShenBaoManager.aspx?FlowType=" + FlowType + "&iid=" + iid;
            window.open(strURL, 'viewer', "fullscreen=1,scrollbars=0;");
        }

        //预审通过的操作
        function PassReturn(strIID) {
            alert("设置成功");
            $("[id$='ys" + strIID + "']").show();
            $("[id$='tg" + strIID + "']").attr("href", "javascript:Ystg('"+strIID+"',-1);");
            $("[id$='tg" + strIID + "']").html("不通过");
        }

        //预审不通过的操作
        function NoPassReturn(strIID) {
            alert("设置成功");
            $("[id$='ys" + strIID + "']").hide();
            $("[id$='tg" + strIID + "']").attr("href", "javascript:Ystg('" + strIID + "',1);");
            $("[id$='tg" + strIID + "']").html("通过");
        }

        function Ystg(strIID, flag) {
            if (flag == 1) {
                var nReturn = confirm("确认通过吗？");
                if (nReturn) {
                    var strUrl = '../WebService/JqueryService.asmx/SetYsFlag';
                    WebService(strUrl, PassReturn, '{"strIID":"' + strIID + '","nFlag":"' + flag + '"}');
                }
            }
            else if (flag == -1) {
                var nReturn = confirm("确认不通过吗？");
                if (nReturn) {
                    var strUrl = '../WebService/JqueryService.asmx/SetYsFlag';
                    WebService(strUrl, NoPassReturn, '{"strIID":"' + strIID + '","nFlag":"' + flag + '"}');
                }
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center; margin: 0px auto;" class="page_box">
        <table width="98%" border="0" align="center" id="tableQuery">
            <tr>
                <td>
                    <asp:Label ID="lblError" runat="server" Text="" Visible="false"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    申请编号：
                    <input maxlength="100" size="15" id="txtIID" name="txtIID" value="" runat="server" />
                   
                    申请人：
                    <input maxlength="100" size="15" id="txtName" name="txtName" value="" runat="server" />
                    <asp:Button ID="btnQuery" runat="server" Text="查询" class="NewButton" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
        <controlDefine:CustomGridView ID="gridviewCar" runat="server" AllowPaging="True"
            Width="100%" HideTextLength="30" AutoGenerateColumns="False" ShowCmpAndCancel="True"
            AllowOnMouseOverEvent="False" ShowItemNumber="true" AutoGenerateDeleteConfirm="True"
            SkinID="NewGrid" ShowHideColModel="None" OnOnLoadData="gridviewCar_OnLoadData" ShowGridViewSelect="List"
            OnRowCreated="gridviewCar_RowCreated">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:TemplateField HeaderText="申请编号">
                    <ItemTemplate>
                        <a href='../WebPubManager/SerialShenBaoManager.aspx?iid=<%# Eval("iid")%>&UserName=<%# Eval("username")%>&FlowName=<%# Eval("FLOWNAME") %>&Business=<%#ViewState["BusinessFlag"] %>&sbUserId=<%# Eval("userid") %>'>
                            <%# Eval("iid")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="flowtype" HeaderText="申报业务类型" />
                <asp:BoundField DataField="tm" HeaderText="图名" />
                <asp:BoundField DataField="username" HeaderText="申请人" />
                <asp:BoundField DataField="edittime" HeaderText="申请日期" />
                <asp:BoundField DataField="submitcount" HeaderText="补正次数" />
                <asp:TemplateField HeaderText="补正详情">
                    <ItemTemplate>
                        <a href="OnLineCorrection.aspx?iid=<%# Eval("iid")%>&Business=<%#ViewState["BusinessFlag"] %>&returnflag=0">
                            补正详情</a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="受理">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlNewSerial" runat="server">受理</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="预审查">
                    <ItemTemplate>
                     <asp:HyperLink ID="hlPass" runat="server">通过</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </controlDefine:CustomGridView>
    </div>
    </form>
</body>
</html>
